package org.zfes.snowier.zbss.xzy.router.user.agreement;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.zbss.xzy.biz.agreement.model.Agreement;
import org.zfes.snowier.zbss.xzy.biz.agreement.service.IAgreementService;
import org.zfes.snowier.core.data.SelectVo;
@Controller("org.zfes.snowier.zbss.xzy.router.user.agreement.AgreementController")
@RequestMapping("/agreement")
public class AgreementController implements BaseController {

	
	@Autowired
	private IAgreementService agreementService;
	

    @RequestMapping(value="/loadAgreement/{productId}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public @ResponseBody  Object loadAgreement(@PathVariable("productId")Long productId){
		
    	return ajaxDoneSuccess("数据操作成功 ");
    }
    
    

    @RequestMapping(value="/signAgreement/{id}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public @ResponseBody  Object signAgreement(@PathVariable("id")Long id){
		
    	return ajaxDoneSuccess("数据操作成功 ");
    }
    
    
    @RequestMapping(value="/loadAgreementSign/{userId}/{productId}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public @ResponseBody  Object loadAgreementSign(@PathVariable("userId")Long userId,@PathVariable("productId")Long productId){
		
    	return ajaxDoneSuccess("数据操作成功 ");
    }
	
    
}